<h1 style="color:#FF3300;"><?php echo $hotel['name']." - ".$hotel['provide'] ?></h1><input type="button" onclick="location.assign('<?php echo base_url(); ?>admin/hotelroom/edit?hotelid=<?php echo $_GET['hotelid']?>');" value="Insert" style="float:right;margin-right:10px;margin-bottom:5px;"/>
<table>
	<tr>
    	<th>STT</th>
        <th>Name</th>
        <th>Max Per</th>
        <th>N.o Room</th>
        <th>Type</th>
        <th>Status</th>
        <th>Edit / Del</th>
        <th>Price</th>
    </tr>
    <?php if(count($data)>0){
			foreach($data as $k=>$list){?>
			<tr>
    	<th><?php echo $k+1 ?></th>
        <td><?php echo $list['name'] ?></td>
        <th><?php echo $list['maxperson'] ?></th>
        <th><?php echo $list['numberroom'] ?></th>
        <th><select name="changestatus" onChange="location.assign('<?php echo base_url(); ?>admin/hotelroom/changestatus?hotelid=<?php echo $_GET["hotelid"] ?>&id=<?php echo $list["id"] ?>&status='+this.options[this.selectedIndex].value);"><option value="0" <?php if($list['status']==0) echo "selected disabled";?>>Highlights</option><option value="1" <?php if($list['status']==1) echo "selected disabled";?>>Normal</option><option value="2" <?php if($list['status']==2) echo "selected disabled";?>>Hide</option></select></th>
        <th><select name="changestatus" onChange="location.assign('<?php echo base_url(); ?>admin/hotelroom/changestatus?hotelid=<?php echo $_GET["hotelid"] ?>&id=<?php echo $list["id"] ?>&status='+this.options[this.selectedIndex].value);"><option value="0" <?php if($list['status']==0) echo "selected disabled";?>>Highlights</option><option value="1" <?php if($list['status']==1) echo "selected disabled";?>>Normal</option><option value="2" <?php if($list['status']==2) echo "selected disabled";?>>Hide</option></select></th>
        <th><a href="<?php echo base_url(); ?>admin/hotelroom/edit?hotelid=<?php echo $_GET['hotelid'] ?>&id=<?php echo $list['id'] ?>"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_edit.png"/></a> / <a href="javascript:void(0);" onClick="if(confirm('Do you want to Del this Information ?')) location.assign('<?php echo base_url(); ?>admin/hotelroom/delete?hotelid=<?php echo $_GET['hotelid'] ?>&id=<?php echo $list["id"]; ?>');"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_delete.png"/></a></th><th><a href="<?php echo base_url(); ?>admin/hotelroomprice/index?hotelid=<?php echo $_GET['hotelid'] ?>&roomid=<?php echo $list['id'] ?>">Price</a></th>
    </tr>
			<?php }
		}?>    
</table>

